<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'west',split:true,border:false" style="width:44%;">
	<table id="dataGrid" class="easyui-datagrid" title="字典管理"  
	data-options="
		url:'dict/list',
		pagination:true,  //分页 
	    fitColumns:true,
	    singleSelect:true,
	    rownumbers:true,
	    remoteSort:false, //本地排序
	    //sortName:'text', //默认排序的字段
	    sortOrder:'asc', //默认的排序规则 ‘asc’、‘desc’
	    toolbar:'#tb'
	">    
	    <thead>   
	        <tr>  
	            <th data-options="field:'id',title:'ID',width:40,align:'right',sortable:true"></th>   
	            <th data-options="field:'code',title:'字典编码',width:100,sortable:true"></th>   
	            <th data-options="field:'text',title:'字典名称',width:100,sortable:true"></th>   
	            <th data-options="field:'status',title:'启用标识',width:40,sortable:true"></th>
	        </tr>   
	    </thead>  
	</table> 
	<div id="tb">
		<div style="float:left">
			<a href="javascript:void(0);" onClick="openAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a>
			<a href="javascript:void(0);" onClick="openEditDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
			<a href="javascript:void(0);" onClick="openDeleteDialog()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
			<a href="javascript:void(0);" onClick="openDetailDialog()" class="easyui-linkbutton" iconCls="icon-cog" plain="true">选项分配</a>
		</div>
		<div style="float:right">
		            字典编码或名称：<input id="zdbmmc" class="easyui-textbox" style="width:110px">
		    <a href="javascript:void(0);" onClick="javascript:searchDict();" class="easyui-linkbutton" iconCls="icon-search">搜  索</a>
		</div>
	</div>
</div>
<div data-options="region:'center',border:false">
	<table id="dataGrid1" class="easyui-datagrid" title="字典选项分配"   
	data-options="
		url:'',
		pagination:true,  //分页 
	    fitColumns:true,
	    singleSelect:true,
	    rownumbers:true,
	    remoteSort:false, //本地排序
	    //sortName:'text', //默认排序的字段
	    sortOrder:'asc', //默认的排序规则 ‘asc’、‘desc’
	    toolbar:'#tb1'
	">    
	    <thead>   
	        <tr>  
	            <th data-options="field:'id',title:'ID',width:40,align:'right',sortable:true"></th>   
	            <th data-options="field:'code',title:'字典选项编码',width:100,sortable:true"></th>   
	            <th data-options="field:'text',title:'字典选项名称',width:100,sortable:true"></th>   
	            <th data-options="field:'val',title:'字典选项值',width:100,sortable:true"></th>   
	            <th data-options="field:'status',title:'启用标识',width:80,sortable:true"></th>
	        </tr>   
	    </thead>  
	</table> 
	<div id="tb1">
		<div style="float:left">
			<a href="javascript:void(0);" onClick="openDetailAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a>
			<a href="javascript:void(0);" onClick="openDetailEditDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
			<a href="javascript:void(0);" onClick="openDetailDeleteDialog()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
		</div>
	</div>
</div>
</div>
